@extends("layouts.backend.webadmin")
@section('page-header')
    <h1>
        <small>falw\menu</small>
    </h1>
@endsection

@section('content')
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/select2/css/select2.min.css">
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/select2/css/select2totree.css">
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-body">
                        @if(count($errors->all()))
                            <ul class="alert alert-danger">
                                @foreach($errors->all() as $error)
                                    <li>{{$error}}</li>
                                @endforeach
                            </ul>
                        @endif
                        <div class="form-group">
                            <label for="vulstitle">公告标题</label>
                            <input type="text" disabled class="form-control" id="vulstitle" placeholder="公告标题"   name="title" value="{{$lists->title}}">
                        </div>
                        <div class="form-group">
                            <label>公告描述</label>
                            <textarea class="form-control" disabled rows="3"  placeholder="公告描述"
                                      name="description">{{$lists->description}}</textarea>
                        </div>
                            <div class="form-group">
                                <label>是否发布</label>
                                <input type="text" disabled class="form-control" id="vulstitle"    name="title" value=" @if($lists->is_publish==0)未发布 @else 已发布
                                        @endif">
                            </div>
                            <div class="form-group">
                                <label for="vulstitle">作者</label>
                                <input type="text" disabled class="form-control" id="vulstitle" placeholder="公告标题"   name="title" value="{{$lists->name}}">
                            </div>
                        {{--end 新增 漏洞URl、URl参数、payload 三个字段 -end --}}
                        <div class="form-group">
                            <label>公告内容</label>
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    {!! $lists->content !!}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
@stop
